import service from '@/utils/request';

// 获取活动分类列表
export function getActivityCategoryList(data) {
  return service({
    url: `/api/system/activity/findTypePage`,
    method: 'post',
    data,
  });
}

// 活动分类下拉
export function getActivityCategorySelect(data) {
  return service({
    url: `/api/system/activity/activityTypeList`,
    method: 'post',
    data
  });
}

// 活动分类新增和修改
export function addActivityCategory(data) {
  return service({
    url: `/api/system/activity/modifyActivityType`,
    method: 'post',
    data,
  });
}

// 活动分类删除
export function delActivityCategory(id) {
  return service({
    url: `/api/system/activity/deleteActivityType?activityTypeId=${id}`,
    method: 'get',
  });
}
